﻿Ext.define('app.prm.project.PrmApplyModel',
{
    extend: 'Ext.app.ViewModel',
    alias: 'viewmodel.PrmApplyModel',
    constructor: function () {
        var me = this;
        this.callParent(arguments);
    }, 
    data: {
        projectNo: '',
        appId:0,
        proExist: false,
        auditor: '',
        effectiveTime: new Date(),
        expirationTime: Ext.Date.add(new Date(), Ext.Date.DAY, 5),
        createOn: '',
        appUser: '',
        note: '我申请查看此项目',
        auditRemark: '',
        auditPass: true
    },
    formulas: {
        _createon: function (get) { return Ext.Date.format(get('createOn'), 'Y-m-d'); }
    }
});